<!-- 隐私政策 -->
<template>
  <view class="mysetting-box">
    <view class="settingList-box">
      <view
        v-for="(item, index) in privacypolicyList"
        :key="index"
        class="item-box"
        @click="clickBtn(item)"
      >
        <p>
          {{ item.name }}
        </p>
        <p>
          <u-icon name="arrow-right"></u-icon>
        </p>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  name: 'privacypolicy',
  data() {
    return {
      privacypolicyList: [
        {
          name: '用户协议',
          type: 3,
          path: '/pages/login/useragreement',
        },
        {
          name: '隐私政策',
          type: 3,
          path: '/pages/login/privacypolicy',
        },
        {
          name: '法律条款',
          type: 3,
          path: '/pages/login/legalprovisions',
        },
      ],
    }
  },
  methods: {
    clickBtn(val) {
      uni.navigateTo({
        url: val.path,
      })
    },
  },
}
</script>
<style lang="scss" scoped>
.mysetting-box {
  height: 100vh;
  background: #f6f6f6;
  padding: 24rpx 30rpx;
  .settingList-box {
    background: #fff;
    border-radius: 10rpx;
  }
  .item-box {
    display: flex;
    justify-content: space-between;
    border-top: 2rpx solid #e5e5e5;
    line-height: 80rpx;
    padding: 4rpx 20rpx;
    margin: 0 4rpx 4rpx 4rpx;
  }
  .item-box:nth-child(1) {
    border: none;
  }
}
</style>
